YesNo displays a dialog with the message specified by Expr. There are 3 buttons in the dialog : Yes, No and Cancel. If the user clicks in Yes, Var is equal to 1, if the user clicks in No, it is eqal to 0, if the user clicks in Cancel it is equal to 2.